import Global from './global'
/*
 * ******************************************** 消息定义 ***************************************
 * *******************************************************************************************
 */
const WM_USER = 1024

export default {
  // 消息
  WM_USER_FIRST: WM_USER + 1000,
  WM_USER_LAST: WM_USER + 4000,

  // 通讯消息
  WM_IOCP_CALLBACK: WM_USER + 1000, // 回调函数在主线程执行
  WM_IOCP_MESSAGE: WM_USER + 1001, // 主线程处理IOCP消息

  WM_INITWINDOW: WM_USER + 1002, // 窗口.初始化
  WM_QUEUERETRY: WM_USER + 2799, // 窗口.队列重试
  WM_RESPONSE_TIME: WM_USER + 1003, // 窗口.是否有响应
  WM_MAIN_ACTIVE: WM_USER + 1004, // 激活主窗口
  WM_MAIN_RESTART: WM_USER + 1005, // 重启程序
  WM_MAIN_LOGOUT: WM_USER + 1006, // 注销

  WM_IOCP_CONNECT: WM_USER + 1007, // 正在连接
  WM_IOCP_DISCONNECTED: WM_USER + 1008, // 断开连接
  WM_IOCP_CONNECTED: WM_USER + 1009, // 连接成功

  WM_CHILD_ACTIVE: WM_USER + 1010, // 子窗口激活
  WM_CHILD_UNACTIVE: WM_USER + 1011, // 子窗口失去焦点

  // 连接
  WM_AGENT_CONNECT: WM_USER + 1012, // Agent 连接成功
  WM_AGENT_DISCONNECT: WM_USER + 1013, // Agent 断开连接
  WM_AGENT_RESTART: WM_USER + 1014, // 重启Agent
  WM_AGENT_REMOTE: WM_USER + 1015,
  WM_CONTROL_CONNECT: WM_USER + 1016, // Control 连接成功
  WM_CONTROL_DISCONNECT: WM_USER + 1017, // Control 断开连接
  WM_CLIENT_UPDATE: WM_USER + 1018, // 更新
  WM_STOP_SERVER: WM_USER + 1019, // 停止Server
  WM_CHANGE_SERVER: WM_USER + 1020, // 更换Server
  WM_GET_AGENT_CONFIG: WM_USER + 1021, // 获取Agent配置
  WM_SET_AGENT_CONFIG: WM_USER + 1022, // 设置Agent配置
  WM_COMPUTER_CLOSE: WM_USER + 1023, // 关闭机器
  WM_COMPUTER_RESTART: WM_USER + 1024, // 重启机器
  WM_COMPUTER_LOGOUT: WM_USER + 1025, // 注销机器
  WM_COMPUTER_LOGIN: WM_USER + 1026, // 登陆测试
  WM_AGENT_PAUSE: WM_USER + 3319, // 停用Agent

  // 营业部
  WM_SERVER_CONNECT: WM_USER + 1027, // 营业部 连接成功
  WM_SERVER_DISCONNECT: WM_USER + 1028, // 营业部 断开连接
  WM_SERVER_CNNCONNECT: WM_USER + 1029, // 营业部 连接成功

  // Agent信息
  WM_AGENT_SET_INFO: WM_USER + 1030, // 设置Agent信息
  WM_AGENT_REMOTE_RST: WM_USER + 1031, // 远程
  WM_AGENT_REMOTE_CTRL: WM_USER + 1032, // 远程控制
  WM_AGENT_OFF_DEL: WM_USER + 1033, // 删除离线Agent
  WM_AGENT_NEW_GROUP: WM_USER + 1034, // 增加分组
  WM_AGENT_SET_GROUP: WM_USER + 1035, // 修改分组
  WM_AGENT_DEL_GROUP: WM_USER + 1036, // 删除分组
  WM_AGENT_MOVE: WM_USER + 1037, // 移动Agent
  WM_CHANGE_AGENT_PASS: WM_USER + 1038, // 修改Window密码
  WM_AGENT_TRACE: WM_USER + 1039, // 获取Trace
  WM_AGENT_SET_HOSTLISTS: WM_USER + 1076, // 设置agent端配置信息中的服务器列表
  WM_AGENT_VIDEO: WM_USER + 2798, // 获取录制视频

  // 控制台
  WM_CONTROL_LOGOUT: WM_USER + 1040, // 注销控制台
  WM_CONTROL_SCREENFUNC: WM_USER + 1041, // 设置控制台显示功能
  WM_CONTROL_SCREENSHOT: WM_USER + 1042, // 获取控制台屏幕截图
  WM_CONTROL_SCREENCTRL: WM_USER + 1043, // 设置控制台功能选项

  // 其它
  WM_TRANSIT_STATE: WM_USER + 1044, // 中转服务器状态
  WM_AGENT_UNLOCK: WM_USER + 1045, // 解锁屏幕
  WM_AGENT_HOOK: WM_USER + 1046, // HOOK
  WM_AGENT_HOOK_VIEW: WM_USER + 1047, // 监视 Hook
  WM_AGENT_SET_REMARK: WM_USER + 1048, // 修改备注
  WM_AGENT_TRACE_FILE: WM_USER + 1049, // 获取Trace文件

  WM_AGENT_SET_TIME: WM_USER + 1050, // 获取Agent时间
  WM_AGENT_GET_TIME: WM_USER + 1051, // 设置Agent时间
  WM_AGENT_CHANGEID: WM_USER + 1052, // 修改AgentID
  WM_AGENT_OFFNOTICE: WM_USER + 1053, // Agent离线通知
  WM_AGENT_SYNTIME: WM_USER + 1054, // 同时时间
  WM_AGENT_TOOL: WM_USER + 1055, // 支持工具
  WM_AGENT_GETFILE: WM_USER + 1056, // 下载文件
  WM_AGENT_SETFILE: WM_USER + 1057, // 上传文件
  WM_AGENT_GET_INI: WM_USER + 1058, // 读取INI
  WM_AGENT_SET_INI: WM_USER + 1059, // 读取INI

  WM_AGENT_GET_XML: WM_USER + 1060, // 读取XML
  WM_AGENT_SET_XML: WM_USER + 1061, // 读取XML
  WM_AGENT_GET_PIC: WM_USER + 1062, // 读取截图
  WM_AGENT_TRADEID: WM_USER + 1063, // 对换ID
  WM_AGENT_DEL_INI: WM_USER + 1064, // 删除INI
  WM_AGENT_DEL_XML: WM_USER + 1065, // 删除XML
  WM_AGENT_FORBIT: WM_USER + 1069, // 禁用

  // 机器关系
  WM_AGENT_ADD_RELATION: WM_USER + 1080, // 增加关系
  WM_AGENT_SET_RELATION: WM_USER + 1081, // 修改关系
  WM_AGENT_DEL_RELATION: WM_USER + 1082, // 删除关系

  // 流程参数组
  WM_FLOW_PARAM_NEW: WM_USER + 3200,
  WM_FLOW_PARAM_GROUP_NEW: WM_USER + 3201,
  WM_FLOW_PARAM_SET: WM_USER + 3202,
  WM_FLOW_PARAM_DEL: WM_USER + 3203,
  WM_FLOW_PARAM_MOVE: WM_USER + 3204,

  // 模板
  WM_TEMPLATE_NEW: WM_USER + 3205,
  WM_TEMPLATE_GROUP_NEW: WM_USER + 3206,
  WM_TEMPLATE_SET: WM_USER + 3207,
  WM_TEMPLATE_DEL: WM_USER + 3208,
  WM_TEMPLATE_MOVE: WM_USER + 3209,

  // rpa 机器参数
  WM_AGENT_PARAM_NEW: WM_USER + 3150, // 增加参数
  WM_AGENT_PARAM_SET: WM_USER + 3151, // 修改分组，参数
  WM_AGENT_PARAM_DEL: WM_USER + 3152, // 删除分组，参数
  WM_AGENT_PARAM_GROUP_NEW: WM_USER + 3153, // 增加分组
  WM_AGENT_PARAM_MOVE: WM_USER + 3154, // 移动分组，参数

  // 商品分类
  WM_SHOPTYPE_NEW: WM_USER + 3160,
  WM_SHOPTYPE_GROUP_NEW: WM_USER + 3161,
  WM_SHOPTYPE_SET: WM_USER + 3162,
  WM_SHOPTYPE_DEL: WM_USER + 3163,
  WM_SHOPTYPE_MOVE: WM_USER + 3164,
  // 需求
  WM_SHOPDEMAND_NEW: WM_USER + 3166,
  WM_SHOPDEMAND_SET: WM_USER + 3167,
  WM_SHOPDEMAND_DEL: WM_USER + 3168,
  WM_SHOPDEMAND_AUDIT: WM_USER + 3169,
  // 商品
  WM_SHOPGOODS_NEW: WM_USER + 3170,
  WM_SHOPGOODS_SET: WM_USER + 3171,
  WM_SHOPGOODS_DEL: WM_USER + 3172,
  WM_SHOPGOODS_AUDIT: WM_USER + 3173,
  WM_SHOPGOODS_MOVE: WM_USER + 3174,
  WM_SHOPGOODS_FORBIT: WM_USER + 3175,
  WM_FORUM_PROBLEM_DEL: WM_USER + 3176,
  // 社区版流程
  WM_CFLOW_STATE: WM_USER + 3180, // 流程状态
  WM_CFLOW_START: WM_USER + 3181, // 开始执行
  WM_CFLOW_STOP: WM_USER + 3182, // 结束执行
  WM_CFLOW_PAUSE: WM_USER + 3183, // 暂停流程
  WM_CFLOW_CONTINUE: WM_USER + 3184, // 继续执行流程
  // 申请
  WM_SHOP_TASK_NEW: WM_USER + 3186,
  WM_SHOP_TASK_SET: WM_USER + 3187,
  WM_SHOP_TASK_DEL: WM_USER + 3188,
  WM_SHOP_TASK_AUDIT: WM_USER + 3189,
  // 社区版任务
  WM_CTASK_START: WM_USER + 3197,
  WM_CTASK_STOP: WM_USER + 3198,

  // 营业部分组
  WM_SERVER_GROUP_NEW: WM_USER + 1070, // 新建营业部分组
  WM_SERVER_GROUP_SET: WM_USER + 1071, // 修改营业部分组
  WM_SERVER_GROUP_DEL: WM_USER + 1072, // 删除营业部分组
  WM_SERVER_MOVE: WM_USER + 1073, // 移动营业部分组
  WM_SERVER_JUMP: WM_USER + 1074, // 营业部跳转
  WM_SERVER_LICENSES: WM_USER + 1075, // 获取总部授权.刷新界面

  // 资源管理
  WM_COMPUTER_NEW: WM_USER + 1100,
  WM_COMPUTER_DEL: WM_USER + 1101,
  WM_COMPUTER_SET: WM_USER + 1102,

  WM_PROGRAM_NEW: WM_USER + 1200,
  WM_PROGRAM_DEL: WM_USER + 1201,
  WM_PROGRAM_SET: WM_USER + 1202,

  WM_TARGET_NEW: WM_USER + 1300,
  WM_TARGET_DEL: WM_USER + 1301,
  WM_TARGET_SET: WM_USER + 1302,
  WM_TARGET_AUDIT: WM_USER + 1303, // 审核指标
  WM_TARGET_VALUE: WM_USER + 1304, // 设置指标值
  WM_TARGET_VALUE_S: WM_USER + 1310, // 批量.设置指标值
  WM_TARGET_EXEC: WM_USER + 1305, // 流程执行指标
  WM_TARGET_EXECOpt: WM_USER + 1306, // 手动执行指标
  WM_TARGET_TIME: WM_USER + 1307, // 更新指标时间
  WM_TARGET_RECOVER: WM_USER + 1308,
  WM_TARGET_RESET: WM_USER + 1309, // 重置脚本
  WM_TARGET_TERMINAL: WM_USER + 1311, // 查看终端
  WM_TARGET_AGAINPOST: WM_USER + 1312, // 重新提交指标
  WM_TARGET_CLEARPOST: WM_USER + 1313, // 清空提交指标
  WM_TARGET_VCLMSG: WM_USER + 1314, // 提交组件消息
  WM_RESTORE_VCLMSG: WM_USER + 1315, //
  WM_RESTORE_END: WM_USER + 1316, //
  WM_WEB_TARGET_COMPILE: WM_USER + 1319, // 网页编译

  // 模版管理
  WM_MOULD_GROUP_NEW: WM_USER + 1320, // 新建模版分组
  WM_MOULD_GROUP_SET: WM_USER + 1321, // 修改模版分组
  WM_MOULD_GROUP_DEL: WM_USER + 1322, // 删除模版分组
  WM_MOULD_MOVE: WM_USER + 1323, // 移动模版
  WM_MOULD_NEW: WM_USER + 1324, // 新建模版
  WM_MOULD_RECOVER: WM_USER + 1325, // 恢复模版
  WM_MOULD_SET: WM_USER + 1326, // 保存模版
  WM_MOULD_AUDIT: WM_USER + 1327, // 审核模版
  WM_MOULD_SCRIPT: WM_USER + 1328, // 审核模版

  // 采集中间件
  WM_SCRIPT_EXEC: WM_USER + 1330, // 调用脚本
  WM_SCRIPT_STOP: WM_USER + 1331, // 停止脚本
  WM_SCRIPT_TRANSFORM: WM_USER + 1332, // 中文组件转换
  WM_TARGET_TRANSFORM: WM_USER + 1333, // 中文指标转换
  // 执行环境
  WM_SCRIPT_ENV_ADD: WM_USER + 1340, // 增加环境
  WM_SCRIPT_ENV_SET: WM_USER + 1341, // 修改环境
  WM_SCRIPT_ENV_DEL: WM_USER + 1342, // 删除环境

  // 事件管理
  WM_EVENT_VALUE: WM_USER + 1400, // 产生事件
  WM_EVENT_VALUE_S: WM_USER + 1408, // 批量.产生事件
  WM_EVENT_PROCESS: WM_USER + 1401, // 处理事件
  WM_EVENT_PROCESSLIST: WM_USER + 1402, // 处理事件列表
  WM_FLOW_NODE_ERR: WM_USER + 1403, // 节点异常
  WM_FLOW_NODE_OK: WM_USER + 1404, // 节点正常
  WM_FLOW_LOG: WM_USER + 1405, // 流程日志
  WM_HTZQ_EVENT_PROCESS: WM_USER + 1406, // 海通事件告警
  WM_EVENT_BACK: WM_USER + 1407,

  // 大屏管理
  WM_BSCREEN_NEW: WM_USER + 1500, // 新建大屏
  WM_BSCREEN_DEL: WM_USER + 1501, // 删除大屏
  WM_BSCREEN_SET: WM_USER + 1502, // 设置大屏
  WM_BSCREEN_VIEW_NEW: WM_USER + 1503, // 新建大屏展示
  WM_BSCREEN_VIEW_DEL: WM_USER + 1504, // 删除大屏展示
  WM_BSCREEN_VIEW_SET: WM_USER + 1505, // 设置大屏展示
  WM_BSCREEN_VIEW_MOVE: WM_USER + 1506, // 移动大屏展示
  WM_MAIN_BSCREEN_NEW: WM_USER + 1507, // 新建展示
  WM_MAIN_BSCREEN_DEL: WM_USER + 1508, // 删除展示
  WM_MAIN_BSCREEN_SET: WM_USER + 1509, // 设置展示

  WM_BSCREEN_NEW_GROUP: WM_USER + 1510, // 新建大屏分组
  WM_BSCREEN_DEL_GROUP: WM_USER + 1511, // 删除大屏分组
  WM_BSCREEN_SET_GROUP: WM_USER + 1512, // 设置大屏分组
  WM_BSCREEN_MOVE: WM_USER + 1513, // 移动大屏
  WM_BSCREEN_SET_TIME: WM_USER + 1514, // 设置时间

  // 分屏管理
  WM_MUTIL_BSCREEN_NEW: WM_USER + 1520, // 新建展示
  WM_MUTIL_BSCREEN_DEL: WM_USER + 1521, // 删除展示
  WM_MUTIL_BSCREEN_SET: WM_USER + 1522, // 设置展示

  // 数仓配置
  WM_DATA_HOUSE_NEW: WM_USER + 1530, // 新建展示
  WM_DATA_HOUSE_DEL: WM_USER + 1531, // 删除展示
  WM_DATA_HOUSE_SET: WM_USER + 1532, // 设置展示
  WM_DATA_HOUSE_MOVE: WM_USER + 1533, // 移动展示
  // 银行配置
  WM_DATA_BANK_NEW: WM_USER + 1535, // 新建展示
  WM_DATA_BANK_DEL: WM_USER + 1536, // 删除展示
  WM_DATA_BANK_SET: WM_USER + 1537, // 设置展示
  WM_DATA_BANK_MOVE: WM_USER + 1538, // 移动展示

  // 计算公式
  WM_CALC_NEW: WM_USER + 1600, // 新建公式
  WM_CALC_DEL: WM_USER + 1601, // 删除公式
  WM_CALC_SET: WM_USER + 1602, // 设置公式

  // 显示公式
  WM_CALCVIEW_NEW: WM_USER + 1700, // 新建公式
  WM_CALCVIEW_DEL: WM_USER + 1701, // 删除公式
  WM_CALCVIEW_SET: WM_USER + 1702, // 设置公式

  // 机器分组
  WM_GROUP_NEW: WM_USER + 1800, // 新建分组
  WM_GROUP_DEL: WM_USER + 1801, // 删除分组
  WM_GROUP_SET: WM_USER + 1802, // 设置分组
  WM_GROUP_MOVE: WM_USER + 1803, // 移动分组

  // 广东农信
  WM_GDRCU_CHGPARM_NEW: WM_USER + 1810, // 参数更改.增加作业
  WM_GDRCU_CHGPARM_SET: WM_USER + 1811, // 参数更改.修改作业
  WM_GDRCU_CHGPARM_DEL: WM_USER + 1812, // 参数更改.删除作业
  WM_GDRCU_CHGPARM_EXEC: WM_USER + 1813, // 参数更改.执行更改

  WM_GDRCU_SYSGHOST_NEW: WM_USER + 1820, // 系统备份.增加作业
  WM_GDRCU_SYSGHOST_SET: WM_USER + 1821, // 系统备份.修改作业
  WM_GDRCU_SYSGHOST_DEL: WM_USER + 1822, // 系统备份.删除作业
  WM_GDRCU_SYSGHOST_EXEC: WM_USER + 1823, // 系统备份.执行备份

  WM_GDRCU_FILEPUB_NEW: WM_USER + 1830, // 文件传输.增加作业
  WM_GDRCU_FILEPUB_SET: WM_USER + 1831, // 文件传输.修改作业
  WM_GDRCU_FILEPUB_DEL: WM_USER + 1832, // 文件传输.删除作业
  WM_GDRCU_FILEPUB_EXEC: WM_USER + 1833, // 文件传输.执行作业
  WM_AGENT_GETPATHLIST: WM_USER + 1834, // 文件传输.获取指定代理文件列表

  WM_GDRCU_PADDING_NEW: WM_USER + 1840, // 补丁升级.增加作业
  WM_GDRCU_PADDING_SET: WM_USER + 1841, // 补丁升级.修改作业
  WM_GDRCU_PADDING_DEL: WM_USER + 1842, // 补丁升级.删除作业
  WM_GDRCU_PADDING_EXEC: WM_USER + 1843, // 补丁升级.执行作业

  WM_GDRCU_CHGPASSWD_NEW: WM_USER + 1850, // 密码更改.增加作业
  WM_GDRCU_CHGPASSWD_SET: WM_USER + 1851, // 密码更改.修改作业
  WM_GDRCU_CHGPASSWD_DEL: WM_USER + 1852, // 密码更改.删除作业
  WM_GDRCU_CHGPASSWD_EXEC: WM_USER + 1853, // 密码更改.执行作业

  WM_GDRCU_VMSWITCH_NEW: WM_USER + 1860, // 虚机迁移.增加作业
  WM_GDRCU_VMSWITCH_SET: WM_USER + 1861, // 虚机迁移.修改作业
  WM_GDRCU_VMSWITCH_DEL: WM_USER + 1862, // 虚机迁移.删除作业
  WM_GDRCU_VMSWITCH_EXEC: WM_USER + 1863, // 虚机迁移.执行作业

  WM_GDRCU_VMGHOST_NEW: WM_USER + 1870, // 快照管理.增加作业
  WM_GDRCU_VMGHOST_SET: WM_USER + 1871, // 快照管理.修改作业
  WM_GDRCU_VMGHOST_DEL: WM_USER + 1872, // 快照管理.删除作业
  WM_GDRCU_VMGHOST_EXEC: WM_USER + 1873, // 快照管理.执行作业

  WM_GDRCU_PROGRAM_GROUP_NEW: WM_USER + 1900, // 应用启停.增加分组
  WM_GDRCU_PROGRAM_GROUP_DEL: WM_USER + 1901, // 应用启停.删除分组
  WM_GDRCU_PROGRAM_GROUP_SET: WM_USER + 1902, // 应用启停.修改分组
  WM_GDRCU_PROGRAM_MOVE: WM_USER + 1903, // 应用启停.移动分组
  WM_GDRCU_PROGRAM_NEW: WM_USER + 1904, // 应用启停.增加应用
  WM_GDRCU_PROGRAM_DEL: WM_USER + 1905, // 应用启停.删除应用
  WM_GDRCU_PROGRAM_SET: WM_USER + 1906, // 应用启停.修改应用
  WM_GDRCU_PROGRAM_EXEC: WM_USER + 1907, // 应用启停.执行组件

  WM_GDRCU_SWITCH_NEW: WM_USER + 1910, // 系统切换.增加切换
  WM_GDRCU_SWITCH_SET: WM_USER + 1911, // 系统切换.修改切换
  WM_GDRCU_SWITCH_DEL: WM_USER + 1912, // 系统切换.删除切换
  WM_GDRCU_SWITCH_EXEC: WM_USER + 1913, // 系统切换.执行切换

  WM_GDRCU_SWITCH_INCITY_SET: WM_USER + 1914, // 同城切换.修改切换
  WM_GDRCU_SWITCH_INCITY_NEW: WM_USER + 1915, // 同城切换.增加切换
  WM_GDRCU_SWITCH_INCITY_DEL: WM_USER + 1916, // 同城切换.删除切换
  WM_GDRCU_SWITCH_INCITY_EXEC: WM_USER + 1917, // 同城切换.执行切换

  // 知识库管理
  WM_REPOSITORY_ITEM_GROUP_ADD: WM_USER + 1920,
  WM_REPOSITORY_ITEM_GROUP_SET: WM_USER + 1921,
  WM_REPOSITORY_ITEM_GROUP_DEL: WM_USER + 1922,
  WM_REPOSITORY_ITEM_GROUP_MOVE: WM_USER + 1923,
  WM_REPOSITORY_ITEM_ADD: WM_USER + 1924,
  WM_REPOSITORY_ITEM_SET: WM_USER + 1925,
  WM_REPOSITORY_ITEM_DEL: WM_USER + 1926,
  WM_REPOSITORY_ITEM_MOVE: WM_USER + 1927,
  WM_REPOSITORY_ITEM_TAG_ADD: WM_USER + 1928,
  WM_REPOSITORY_ITEM_TAG_SET: WM_USER + 1929,
  WM_REPOSITORY_ITEM_TAG_DEL: WM_USER + 1930,
  WM_REPOSITORY_SET_ITEM_TAG: WM_USER + 1931,
  WM_REPOSITORY_ITEM_ATTACHMENT_ADD: WM_USER + 1932,
  WM_REPOSITORY_ITEM_ATTACHMENT_DEL: WM_USER + 1933,
  WM_REPOSITORY_ITEM_FAVORITE_ADD: WM_USER + 1934,
  WM_REPOSITORY_ITEM_FAVORITE_DEL: WM_USER + 1935,
  WM_REPOSITORY_CONFIG_ADD: WM_USER + 1936,
  WM_REPOSITORY_CONFIG_DEL: WM_USER + 1937,
  WM_REPOSITORY_CONFIG_SET: WM_USER + 1938,
  WM_REPOSITORY_CONFIG_MOVE: WM_USER + 1939,

  WM_REPOSITORY_FILE_GROUP_ADD: WM_USER + 1940,
  WM_REPOSITORY_FILE_GROUP_SET: WM_USER + 1941,
  WM_REPOSITORY_FILE_GROUP_DEL: WM_USER + 1942,
  WM_REPOSITORY_FILE_GROUP_MOVE: WM_USER + 1943,
  WM_REPOSITORY_FILE_ADD: WM_USER + 1944,
  WM_REPOSITORY_FILE_DEL: WM_USER + 1945,
  WM_REPOSITORY_FILE_MOVE: WM_USER + 1946,
  WM_REPOSITORY_FILE_FAVORITE_ADD: WM_USER + 1947,
  WM_REPOSITORY_FILE_FAVORITE_DEL: WM_USER + 1948,
  WM_REPOSITORY_FILE_UPDATE: WM_USER + 1949,

  WM_REPOSITORY_DISPATCH_GROUP_ADD: WM_USER + 1951,
  WM_REPOSITORY_DISPATCH_GROUP_DEL: WM_USER + 1952,
  WM_REPOSITORY_DISPATCH_GROUP_MOVE: WM_USER + 1953,
  WM_REPOSITORY_DISPATCH_GROUP_SET: WM_USER + 1954,
  WM_REPOSITORY_DISPATCH_ADD: WM_USER + 1955,
  WM_REPOSITORY_DISPATCH_DEL: WM_USER + 1956,
  WM_REPOSITORY_DISPATCH_MOVE: WM_USER + 1957,
  WM_REPOSITORY_DISPATCH_SET: WM_USER + 1958,

  WM_REPOSITORY_SEARCH: WM_USER + 1960,
  WM_REPOSITORY_CATEGORY: WM_USER + 1961,
  WM_REPOSITORY_CONFIG_GROUP_MOVE: WM_USER + 1962,
  WM_REPOSITORY_CONFIG_GROUP_ADD: WM_USER + 1963,

  // 用户管理
  WM_USER_ADD: WM_USER + 2011, // 增加用户
  WM_USER_ADD_GROUP: WM_USER + 2012, // 增加分组
  WM_USER_DEL: WM_USER + 2013, // 删除用户
  WM_USER_SET: WM_USER + 2015, // 修改用户
  WM_USER_SET_GROUP: WM_USER + 2016, // 修改分组
  WM_USER_MOVE: WM_USER + 2017, // 移动分组
  WM_USER_ENABLED: WM_USER + 2018, // 用户启用
  WM_USER_LINK: WM_USER + 2019, // 快捷方式
  WM_USER_UNLOCK: WM_USER + 2020, // 解除锁定

  // 权限管理
  WM_ROLE_ADD: WM_USER + 2021, // 增加权限
  WM_ROLE_DEL: WM_USER + 2022, // 删除权限
  WM_ROLE_SET: WM_USER + 2023, // 修改权限
  WM_ROLE_USER_ADD: WM_USER + 2024, // 增加人员关系
  WM_ROLE_USER_DEL: WM_USER + 2025, // 删除人员关系
  WM_SET_ROLES: WM_USER + 2026, // 修改客户端权限
  WM_ROLE_GROUP_ADD: WM_USER + 2027, // 增加分组
  WM_ROLE_GROUP_DEL: WM_USER + 2028, // 删除分组
  WM_ROLE_GROUP_SET: WM_USER + 2029, // 修改分组

  // 菜单管理
  WM_MENU_ADD: WM_USER + 2041, // 增加菜单
  WM_MENU_DEL: WM_USER + 2042, // 删除菜单
  WM_MENU_SET: WM_USER + 2043, // 修改菜单
  WM_MENU_MOVE: WM_USER + 2044, // 移动菜单

  // 参数管理
  WM_PARAM_MOVE: WM_USER + 2050, // 移动参数
  WM_PARAMCLASS_NEW: WM_USER + 2051, // 增加参数分类
  WM_PARAMCLASS_SET: WM_USER + 2052, // 删除参数分类
  WM_PARAM_NEW: WM_USER + 2054, // 增加参数
  WM_PARAM_DEL: WM_USER + 2055, // 删除参数
  WM_PARAM_SET: WM_USER + 2056, // 修改参数
  WM_LOCALPARAM_NEW: WM_USER + 2057, // 增加本地参数
  WM_LOCALPARAM_SET: WM_USER + 2058, // 删除本地参数
  WM_PARAMEX_SET: WM_USER + 2059, // 修改界面参数
  WM_PARAM_INIT: WM_USER + 2060, // 刷新代理端全局变量

  // 报表管理
  WM_REPORTGROUP_NEW: WM_USER + 2061, // 增加报表分组
  WM_REPORT_SET: WM_USER + 2062, // 设置报表
  WM_REPORT_DEL: WM_USER + 2063, // 删除报表
  WM_REPORT_NEW: WM_USER + 2064, // 增加报表
  WM_REPORT_MOVE: WM_USER + 2065, // 移动报表

  WM_REPORTSQL_SET: WM_USER + 2066, // 设置报表SQL
  WM_REPORTSQL_DEL: WM_USER + 2067, // 删除报表SQL
  WM_REPORTSQL_NEW: WM_USER + 2068, // 增加报表SQL
  WM_SAVEREPORT_DEL: WM_USER + 2069, // 删除报表

  // 环境变量
  WM_ENV_ADD: WM_USER + 2070, // 增加环境变量
  WM_ENV_SET: WM_USER + 2071, // 设置环境变量
  WM_ENV_DEL: WM_USER + 2073, // 删除环境变量
  WM_ENV_SHOTTOSERVER: WM_USER + 2074, // 设置环境变量
  WM_ENV_SCREENSHOTRUN: WM_USER + 2075, // 设置环境变量
  WM_ENV_AOMHINT: WM_USER + 2076, // 设置环境变量
  WM_ENV_AOMFTP: WM_USER + 2077, // 设置环境变量
  WM_ENV_AOMFLOWOBJ: WM_USER + 2078, // 设置环境变量
  WM_ENV_AUTOUNLOCK: WM_USER + 2079, // 设置环境变量
  WM_ENV_ADDGROUP: WM_USER + 2080, // 增加环境变量分组
  WM_ENV_UPDATETARGETTIME: WM_USER + 2084, // 设置环境变量
  WM_ENV_FLOWSIMPLEVIEW: WM_USER + 2237, // 设置环境变量
  WM_ENV_FLOWTRACE: WM_USER + 2089, // 设置环境变量
  WM_ENV_RECSCREENPATH: WM_USER + 2314, // 设置环境变量
  WM_ENV_RECSCREENENABLED: WM_USER + 2339, // 设置环境变量
  WM_ENV_RECTRACELOG: WM_USER + 2238, // 设置环境变量

  // 客户端日志
  WM_LOG_DATE: WM_USER + 2081, // 获取客户端日志日期列表
  WM_AGENT_LOG: WM_USER + 2082, // 获取客户端日志
  WM_UPDATE_INIT: WM_USER + 2083, // 开始更新(代理端、控制台、中转服务器、营业部服务器)

  // 环境变量
  WM_ENV_LOCKTIME: WM_USER + 2085, // 控制台锁定时间
  WM_ENV_POSTTARGET: WM_USER + 2086, // 指标提交方式
  WM_ENV_UNLOCKSVC: WM_USER + 2087, // 解锁服务
  WM_ENV_MAXVALUESIZE: WM_USER + 2088, // 最大指标值长度

  // 流程配置
  WM_FLOW_STATE: WM_USER + 2090, // 流程状态
  WM_FLOWGROUP_NEW: WM_USER + 2091, // 增加流程分组
  WM_FLOW_SET: WM_USER + 2092, // 设置流程
  WM_FLOW_DEL: WM_USER + 2093, // 删除流程
  WM_FLOW_NEW: WM_USER + 2094, // 增加流程
  WM_FLOW_AUDIT: WM_USER + 2095, // 流程审核
  WM_FLOW_DETAIL_DEL: WM_USER + 2096, // 删除流程
  WM_FLOW_MOVE: WM_USER + 2097, // 移动流程
  WM_CURFLOW_DEL: WM_USER + 2098, // 删除最新流程
  WM_FLOW_RECOVER: WM_USER + 2099, // 覆盖流程
  WM_FLOW_SETBS: WM_USER + 2100, // 设置大屏

  // 任务配置
  WM_TASK_SET: WM_USER + 2101, // 设置任务
  WM_TASK_DEL: WM_USER + 2102, // 删除任务
  WM_TASK_NEW: WM_USER + 2103, // 新增任务
  WM_TASK_START: WM_USER + 2104, // 开始执行
  WM_TASK_STOP: WM_USER + 2105, // 结束执行
  WM_REPORT_START: WM_USER + 2106, // 开始执行
  WM_REPORT_STOP: WM_USER + 2107, // 结束执行

  // 日历管理
  WM_HOLIDAY_SET: WM_USER + 2111, // 设置日历
  WM_HOLIDAY_DEL: WM_USER + 2112, // 删除日历
  WM_HOLIDAY_NEW: WM_USER + 2113, // 增加日历
  WM_SET_HOLIDAYTYPE: WM_USER + 2114, // 设置节假日
  WM_HOLIDAY_INPUT: WM_USER + 2115, // 导入日历
  WM_HOLIDAY_POST: WM_USER + 2116, // 立刻生效

  // 流程执行
  WM_FLOW_START: WM_USER + 2120, // 开始执行
  WM_FLOW_PAUSE: WM_USER + 2121, // 暂停执行
  WM_FLOW_STOP: WM_USER + 2122, // 结束执行
  WM_FLOW_CONTINUE: WM_USER + 2123, // 继续执行
  WM_FLOW_CONFIRMOBJ: WM_USER + 2124, // 确认节点
  WM_FLOW_CONFIG: WM_USER + 2125, // 流程配置
  WM_FLOW_SCREENSHOT: WM_USER + 2126, // 获取Agent流程截图
  WM_FLOW_READ: WM_USER + 2127, // 执行历史已读
  WM_FLOW_VCLRST: WM_USER + 2128, // 组件返回消息
  WM_FLOW_MUTEX: WM_USER + 2129, // 流程互斥
  WM_FLOW_RESETOBJ: WM_USER + 2149, // 重做流程节点
  WM_FLOW_CHECKOBJ: WM_USER + 2139, // 复核节点
  WM_FLOW_CONFIRM: WM_USER + 2110,	// 流程执行前确认提示
  WM_FLOW_CONFIRMPASS: WM_USER + 2117, // 流程执行前用户确认成功
  WM_FLOW_CONFIRMCLOSE: WM_USER + 2118,	// 流程执行前用户确认窗口关闭

  // 组件管理
  WM_COMPONENT_NEW: WM_USER + 2130, // 新建组件
  WM_COMPONENT_SET: WM_USER + 2131, // 设置组件
  WM_COMPONENT_DEL: WM_USER + 2132, // 删除组件
  WM_COMPONENT_MOVE: WM_USER + 2133, // 移动组件
  WM_COMPONENT_AUDIT: WM_USER + 2134, // 审核组件
  WM_COMPONENT_RECOVER: WM_USER + 2135, // 恢复组件
  WM_COMPONENT_ATTACH_NEW: WM_USER + 2136, // 增加附件
  WM_COMPONENT_ATTACH_DEL: WM_USER + 2137, // 删除附件
  WM_COMPONENT_ATTACH_SET: WM_USER + 2138, // 设置附件
  WM_COMPONENTTASK_READ: WM_USER + 2429, // 执行历史已读

  // 配置管理
  WM_SET_MAIL: WM_USER + 2140, // 设置eMail
  WM_SET_MESSAGE: WM_USER + 2141, // 设置短信
  WM_SYSTEMLOG_DEL: WM_USER + 2142, // 删除日志
  WM_SYSTEMLOG_ADD: WM_USER + 2143, // 增加日志

  WM_DATA_BACKUP: WM_USER + 2144, // 数据备份
  WM_DATA_DELETE: WM_USER + 2145, // 删除数据

  // 声音配置
  WM_MUSIC_NEW: WM_USER + 2150, // 增加声音
  WM_MUSIC_SET: WM_USER + 2151, // 修改声音
  WM_MUSIC_DEL: WM_USER + 2152, // 删除声音
  WM_MUSIC_PLAY: WM_USER + 2153, // 播放声音
  WM_MUSIC_FLOWPLAY: WM_USER + 2154, // 播放声音.流程节点
  WM_MUSIC_STOP: WM_USER + 2155, // 停止声音
  WM_MUSIC_AGENT_STOP: WM_USER + 2156, // 停止声音
  WM_MUSIC_SYNTIME: WM_USER + 2157, // 播放声音
  WM_MUSIC_EVENT: WM_USER + 2158, // 事件通知

  // 指标配置
  WM_CONFIG_NEW: WM_USER + 2160, // 增加配置方案
  WM_CONFIG_DEL: WM_USER + 2161, // 删除配置方案
  WM_CONFIG_ENABLE: WM_USER + 2162, // 设置配置方案
  WM_CONFIG_NAME: WM_USER + 2163, // 设置配置方案
  WM_CONFIG_DEFAULT: WM_USER + 2164, // 设置默认方案
  WM_FLOW_QUEUE_DEL: WM_USER + 2165, // 删除流程队列
  WM_FLOW_QUEUE: WM_USER + 2166, // 流程队列

  // 软件库
  WM_SOFT_NEW: WM_USER + 2180, // 增加软件
  WM_SOFT_DEL: WM_USER + 2181, // 删除软件
  WM_SOFT_SET: WM_USER + 2182, // 设置软件
  WM_SOFT_GROUP_NEW: WM_USER + 2183, // 增加分组
  WM_SOFT_VER_NEW: WM_USER + 2184, // 增加版本
  WM_SOFT_MOVE: WM_USER + 2185, // 移动软件
  WM_SOFT_INFO_SET: WM_USER + 2186, // 设置版本信息
  WM_SOFT_FILE_SET: WM_USER + 2187, // 设置文件信息
  WM_SOFT_FILE_DEL: WM_USER + 2188, // 删除文件信息
  WM_SOFT_CHANGE_TYPE: WM_USER + 2189, // 改变文件类型

  // 图标库
  WM_ICON_NEW: WM_USER + 2190, // 增加图标
  WM_ICON_DEL: WM_USER + 2191, // 删除图标
  WM_ICON_SET: WM_USER + 2192, // 设置图标

  WM_SOFT_TASK_STOP: WM_USER + 2193, // 分发完成
  WM_GET_AGENT_PATH: WM_USER + 2194, // 获取代理端文件
  WM_PUSH_AGENT_PATH: WM_USER + 2195, // 上传代理端文件
  WM_CHECK_BACKUP: WM_USER + 2196, // 检查备份
  WM_RESTORE_BACKUP: WM_USER + 2197, // 恢复备份
  WM_END_BACKUP: WM_USER + 2198, // 恢复备份
  WM_BASE_COMPUTER_DEL: WM_USER + 2199, // 删除机器

  // 软件库
  WM_SOFT_FILE_SIZE: WM_USER + 2200, // 获取文件大小
  WM_SOFT_FILE_ADD: WM_USER + 2201, // 增加软件文件
  WM_BASE_RECOVER: WM_USER + 2202, // 恢复版本

  WM_TASKGROUP_NEW: WM_USER + 2203, // 增加软件部署分组
  WM_TASK_MOVE: WM_USER + 2204, // 移动软件部署
  WM_SOFTFILE_DEL: WM_USER + 2205, // 删除私有文件
  WM_SOFTPATH_ADD: WM_USER + 2206, // 增加私有目录
  WM_BASE_SOFT_STOP: WM_USER + 2207, // 终止下发
  WM_UPDATEFILE_ERROR: WM_USER + 2208, // 更新提醒
  WM_SOFT_PATH_ADD: WM_USER + 2209, // 增加文件夹
  // 软件部署
  WM_SOFT_TASK_NEW: WM_USER + 2210, // 增加软件部署
  WM_SOFT_TASK_SET: WM_USER + 2211, // 设置软件部署
  WM_SOFT_TASK_DEL: WM_USER + 2212, // 删除软件部署
  WM_SOFT_TASK_PUSH: WM_USER + 2213, // 软件部署
  WM_SOFT_TASK_LOG: WM_USER + 2214, // 软件部署日志
  WM_SOFT_TASK_AUDIT: WM_USER + 2215, // 软件部署审核
  WM_BASE_SOFT_CONFIG: WM_USER + 2216, // 监控设置
  WM_GET_NEW_FILE: WM_USER + 2217, // 获取多余的文件
  WM_MONITOR_NEW_FILE: WM_USER + 2218, // 监控多余的文件
  WM_BASE_SOFT_SET: WM_USER + 2219, // 设置软件基准

  // 软件基准
  WM_BASE_SOFT_NEW: WM_USER + 2220, // 增加基准
  WM_BASE_SOFT_DEL: WM_USER + 2221, // 删除基准
  WM_BASE_SOFT_AUDIT: WM_USER + 2222, // 基准审核
  WM_BASE_SOFT_MONITOR: WM_USER + 2223, // 文件监控

  // 文件操作
  WM_FILE_TO_AGENT: WM_USER + 2224, // 更新到Agent
  WM_FILE_TO_SERVER: WM_USER + 2225, // 更新到Server
  WM_SET_FILE_INFO: WM_USER + 2226, // 更新到Server信息
  WM_FILE_TO_PRIVATE: WM_USER + 2227, // 增加到私有文件
  WM_ADD_TO_PRIVATE: WM_USER + 2228, // 增加到私有文件
  WM_GET_AGENT_FILE: WM_USER + 2229, // 获取Agent文件

  // 报告管理
  WM_DOCGROUP_NEW: WM_USER + 2230, // 增加报告分组
  WM_DOC_SET: WM_USER + 2231, // 设置报告
  WM_DOC_DEL: WM_USER + 2232, // 删除报告
  WM_DOC_NEW: WM_USER + 2233, // 增加报告
  WM_DOC_MOVE: WM_USER + 2234, // 移动报告
  WM_SAVEDOC_DEL: WM_USER + 2235, // 删除报表

  WM_BASE_SOFT_END: WM_USER + 2236, // 增加基准
  WM_BASE_SOFT_BREAK: WM_USER + 2248, // 设置断点
  WM_BASE_SOFT_CONTINUE: WM_USER + 2249, // 设置断点

  // Linux 终端
  WM_TERMINAL_OPEN: WM_USER + 2240, // 连接终端
  WM_TERMINAL_CLOSE: WM_USER + 2241, // 关闭终端
  WM_TERMINAL_WAITCMD: WM_USER + 2242, // 等待命令
  WM_TERMINAL_STOPCMD: WM_USER + 2243, // 终止命令
  WM_TERMINAL_INPUTCMD: WM_USER + 2244, // 输入命令
  WM_TERMINAL_GETTEXT: WM_USER + 2245,
  WM_TERMINAL_GETSCREEN: WM_USER + 2246,
  WM_TERMINAL_WAITTEXT: WM_USER + 2247,

  // 对应关系
  WM_RELATION_GROUP_NEW: WM_USER + 2250, // 增加对应关系分组
  WM_RELATION_SET: WM_USER + 2251, // 设置对应关系
  WM_RELATION_DEL: WM_USER + 2252, // 删除对应关系
  WM_RELATION_NEW: WM_USER + 2253, // 增加对应关系
  WM_RELATION_MOVE: WM_USER + 2254, // 移动对应关系
  WM_RELATION_FILE_DEL: WM_USER + 2255, // 删除对应关系
  WM_RELATION_FILE_SET: WM_USER + 2256, // 设置对应关系文件
  WM_RELATION_MONITOR: WM_USER + 2257, // 监控对应关系文件
  WM_RELATION_SETFILE: WM_USER + 2258, // 同步文件
  WM_RELATION_GETFILE: WM_USER + 2259, // 同步文件
  WM_RELATION_REINIT: WM_USER + 2260, // 重新刷新列表

  // 代理信息
  WM_AGENT_CHANGE_SERVER: WM_USER + 2261, // 更改服务器地址
  WM_GET_AGENTNAME: WM_USER + 2262, // 获取代理名称
  WM_AGENT_RUNINFO: WM_USER + 2263, // 代理端运行信息
  WM_AGENT_WINDOWS_UPDATELIST: WM_USER + 2264, // 代理端windows补丁信息
  WM_AGENT_WINDOWS_UPDATE_INSTALL: WM_USER + 2265, // 代理端更新windows补丁
  WM_AGENT_WINDOWS_SOFTLIST: WM_USER + 2266, // 代理端安装软件列表

  WM_AGENT_FILE_SYNC: WM_USER + 2267, // 文件同步

  WM_AGENT_WINDOWS_SCHEDULELIST: WM_USER + 2268, // Windows计划任务
  WM_WINDOWSSCHEDULE_NEW: WM_USER + 3120, // 新建windows计划任务
  WM_WINDOWSSCHEDULE_SET: WM_USER + 3121, // 修改
  WM_WINDOWSSCHEDULE_DEL: WM_USER + 3122, // 删除
  WM_WINDOWSSCHEDULEGROUP_NEW: WM_USER + 3123, // 新建windows计划任务分组
  WM_WINDOWSSCHEDULE_MOVE: WM_USER + 3124, // 移动

  WM_AGENT_INFO: WM_USER + 2270, // 代理信息
  WM_AGENT_REMOTEFREE: WM_USER + 2271, // 断开远程
  WM_AGENT_THREAD: WM_USER + 2272, // 代理线程
  WM_AGENT_SCRIPT: WM_USER + 2273, // 代理脚本
  WM_AGENT_STOPTHREAD: WM_USER + 2274, // 终止代理端线程
  WM_AGENT_STOPTSCRIPT: WM_USER + 2275, // 执行or终止代理端脚本
  WM_SCRIPT_RESET: WM_USER + 2276, // 重置脚本状态
  WM_AGENT_OPENCONTROL: WM_USER + 2278, // 打开控制台
  WM_AGENT_UPDATE: WM_USER + 2279, // 更新代理端

  // 连接管理器
  WM_AGENT_INSTANCE_GET: WM_USER + 3234, // 获取
  WM_AGENT_INSTANCE_ADD: WM_USER + 3235, // 增加
  WM_AGENT_INSTANCE_OPT: WM_USER + 3236, // 操作
  WM_AGENT_INSTANCE_CLEAR: WM_USER + 3238, // 清空
  WM_AGENT_NAME_SET: WM_USER + 3410,

  // 工单管理
  WM_WORK_FORM_NEW: WM_USER + 2280, // 增加工单
  WM_WORK_FORM_SET: WM_USER + 2281, // 修改工单
  WM_WORK_FORM_SUBMIT: WM_USER + 2282, // 提交工单
  WM_WORK_FORM_DEL: WM_USER + 2283, // 删除工单

  // 双机热备
  WM_BACKUP_SERVER: WM_USER + 2290, // 设置.双机热备地址
  WM_BACKUP_FLOWBEGIN: WM_USER + 2291, // 同步正在执行的流程.开始
  WM_BACKUP_FLOWEND: WM_USER + 2292, // 同步正在执行的流程.完成
  WM_BACKUP_FLOWSTATE: WM_USER + 2293, // 同步正在执行的流程.状态
  WM_BACKUP_SWITCHB: WM_USER + 2294,
  WM_BACKUP_SWITCHM: WM_USER + 2295,
  WM_DISTRIBUTE_SERVER: WM_USER + 2296,

  // 文件传输
  WM_FT_ERR_TO_CONTROL: WM_USER + 2300, // 传错误消息到control
  WM_FT_FILE_LIST: WM_USER + 2301, // 获取文件列表
  WM_FT_FROM_AGENT: WM_USER + 2302, // 传文件到control
  WM_FT_TO_AGENT: WM_USER + 2303, // 传文件到agent
  WM_FT_FILE_DELETE: WM_USER + 2304, // 删除agent文件or文件夹
  WM_FT_FILE_SYNC_INIT: WM_USER + 2305, // 发起文件下载
  WM_FT_FILE_SYNC_TERMINATE: WM_USER + 2306, // 终止文件下载
  WM_FT_FILE_SYNC_NOTIFY: WM_USER + 2307, // 文件进度通知
  WM_FT_FILE_SYNC_COMMAND: WM_USER + 2308, // 文件命令
  WM_FT_FILE_SYNC_RESPONSE: WM_USER + 2309, // 文件回应

  // 值班管理
  WM_USER_JOB_SET: WM_USER + 2310, // 设置值班
  WM_REPEAT_IP: WM_USER + 2311, // 更换机器
  WM_AGENT_COPY: WM_USER + 2312, // 获取剪贴板
  WM_AGENT_PASTE: WM_USER + 2313, // 设置剪贴板

  WM_AGENT_UPDATES_RESULT: WM_USER + 2315, // 补丁安装结果
  WM_AGENT_UPDATES_SUCC_NOTICE: WM_USER + 2316, // 补丁安装成功通知
  WM_AGENT_UPDATES_FAIL_NOTICE: WM_USER + 2317, // 补丁安装失败通知
  WM_AGENT_UPDATES_NOTICE_USER: WM_USER + 2318, // 补丁安装情况通知人
  WM_AGENT_NOTICE_USER: WM_USER + 2319, // 代理端离线通知人

  // 旧知识库管理
  WM_REPOSITORY_ADD: WM_USER + 2320,
  WM_REPOSITORY_DELETE: WM_USER + 2321,
  WM_REPOSITORY_SET: WM_USER + 2322,
  //  WM_REPOSITORY_MOVE   : WM_USER + 2323;
  WM_REPOSITORYGROUP_ADD: WM_USER + 2324,
  WM_REPOSITORYGROUP_SET: WM_USER + 2325,

  WM_REPOSITORYATTACH_DEL: WM_USER + 2326,
  WM_REPOSITORYATTACH_ADD: WM_USER + 2327,

  WM_REPOSITORYCLASSIFY_ADD: WM_USER + 2328,
  WM_REPOSITORYCLASSIFY_SET: WM_USER + 2329,
  WM_REPOSITORYCLASSIFY_DEL: WM_USER + 2323,

  // 采集策略
  WM_SCRIPTTIME_NEW: WM_USER + 2330,
  WM_SCRIPTTIME_SET: WM_USER + 2331,
  WM_SCRIPTTIME_DEL: WM_USER + 2332,
  WM_SCRIPTTIME_RST: WM_USER + 2333, // 立即生效
  WM_SCRIPTTIMEGROUP_NEW: WM_USER + 2334,
  WM_SCRIPTTIME_MOVE: WM_USER + 2335,

  // 告警策略
  WM_LEVELCONFIG_NEW: WM_USER + 2340,
  WM_LEVELCONFIG_SET: WM_USER + 2341,
  WM_LEVELCONFIG_DEL: WM_USER + 2342,
  WM_LEVELCONFIGGROUP_NEW: WM_USER + 2343,
  WM_LEVELCONFIG_MOVE: WM_USER + 2344,

  WM_LEVELDEFINE_NEW: WM_USER + 2345,
  WM_LEVELDEFINE_SET: WM_USER + 2346,
  WM_LEVELDEFINE_DEL: WM_USER + 2347,
  WM_LEVELDEFINEGROUP_NEW: WM_USER + 2348,
  WM_LEVELDEFINE_MOVE: WM_USER + 2349,

  // 指标分组
  WM_TARGETGROUP_NEW: WM_USER + 2350,
  WM_TARGETGROUP_SET: WM_USER + 2351,
  WM_TARGETGROUP_DEL: WM_USER + 2352,
  WM_TARGETGROUP_MOVE: WM_USER + 2353,

  // 监控业务分组
  WM_MMITEM_NEW: WM_USER + 2360,
  WM_MMGROUP_NEW: WM_USER + 2361,
  WM_MMGROUP_DEL: WM_USER + 2362,
  WM_MMITEM_DEL: WM_USER + 2363,
  WM_MMGROUP_SET: WM_USER + 2364,
  WM_MMITEM_SET: WM_USER + 2365,
  WM_MM_MOVE: WM_USER + 2366,
  WM_MMODEL_SET: WM_USER + 2367,
  WM_MMODEL_DEL: WM_USER + 2368,
  WM_MMODEL_ADD: WM_USER + 2369,

  // 交互函数
  WM_WAITINPUT: WM_USER + 2370,
  WM_WAITSAVE: WM_USER + 2371,
  WM_FLOW_TAKER: WM_USER + 2372, // 流程接管通知
  WM_SCRIPT_READ: WM_USER + 2373,
  WM_COMPONENT_READ: WM_USER + 2374,
  WM_SCRIPT_READ2: WM_USER + 2375,
  WM_COMPONENT_READ2: WM_USER + 2376,
  WM_BS_WAITINPUT: WM_USER + 2377, // 海通定制
  // 任务关联
  WM_TASKORDER_SET: WM_USER + 2380,

  // 流程通知
  WM_FLOWNOTIFY_ADD: WM_USER + 2390,
  WM_FLOWNOTIFY_DEL: WM_USER + 2391,
  WM_FLOWNOTIFY_SET: WM_USER + 2392,
  WM_FLOWOBJECT_POP: WM_USER + 2393, // 节点异常弹框

  // 作业延时
  WM_FLOWDELAY_SET: WM_USER + 2400,
  WM_FLOWDELAY_DEL: WM_USER + 2401,

  // 批量任务
  WM_BATCHTASK_NEW: WM_USER + 2410,
  WM_BATCHTASK_SET: WM_USER + 2411,
  WM_BATCHTASK_DEL: WM_USER + 2412,
  WM_BATCHTASKGROUP_NEW: WM_USER + 2413,
  WM_BATCHTASK_MOVE: WM_USER + 2414,
  WM_BATCHTASK_DEL2: WM_USER + 2415,
  WM_BATCHTASK_READ: WM_USER + 2416, // 查看批量任务记录

  // 组件任务
  WM_COMPONENTTASK_NEW: WM_USER + 2420,
  WM_COMPONENTTASK_SET: WM_USER + 2421,
  WM_COMPONENTTASK_DEL: WM_USER + 2422,
  WM_COMPONENTTASKGROUP_NEW: WM_USER + 2423,
  WM_COMPONENTTASK_MOVE: WM_USER + 2424,
  WM_COMPONENTTASK_START: WM_USER + 2427,
  WM_COMPONENTTASK_LOG: WM_USER + 2426,
  WM_COMPONENTTASK_END: WM_USER + 2428,

  // 文件压缩任务
  WM_FILE_ZIP_NEW: WM_USER + 2430,
  WM_FILE_ZIP_SET: WM_USER + 2431,
  WM_FILE_ZIP_DEL: WM_USER + 2432,
  WM_FILE_ZIP_GROUP_NEW: WM_USER + 2433,
  WM_FILE_ZIP_MOVE: WM_USER + 2434,
  WM_FILE_ZIP_DETAIL_DEL: WM_USER + 2435,
  WM_FILE_ZIP_LOG: WM_USER + 2436,
  WM_FILE_ZIP_START: WM_USER + 2437,
  WM_FILE_ZIP_END: WM_USER + 2438,
  WM_FILE_ZIP_EXEC: WM_USER + 2439,

  // 巡检报表 Gdrcu
  WM_GDRCU_REPORT_NEW: WM_USER + 2450,
  WM_GDRCU_REPORT_SET: WM_USER + 2451,
  WM_GDRCU_REPORT_DEL: WM_USER + 2452,
  WM_GDRCU_REPORT_GROUP_NEW: WM_USER + 2453,
  WM_GDRCU_REPORT_MOVE: WM_USER + 2454,
  WM_GDRCU_REPORT_DETAIL_DEL: WM_USER + 2455,

  // 信息采集
  WM_GDRCU_TASK_NEW: WM_USER + 2460,
  WM_GDRCU_TASK_SET: WM_USER + 2461,
  WM_GDRCU_TASK_DEL: WM_USER + 2462,
  WM_GDRCU_TASK_GROUP_NEW: WM_USER + 2463,
  WM_GDRCU_TASK_MOVE: WM_USER + 2464,
  WM_GDRCU_TASK_DETAIL_DEL: WM_USER + 2465,

  // 应用发布
  WM_GDRCU_PUBLISH_NEW: WM_USER + 2470,
  WM_GDRCU_PUBLISH_SET: WM_USER + 2471,
  WM_GDRCU_PUBLISH_DEL: WM_USER + 2472,
  WM_GDRCU_PUBLISH_GROUP_NEW: WM_USER + 2473,
  WM_GDRCU_PUBLISH_MOVE: WM_USER + 2474,
  WM_GDRCU_PUBLISH_DETAIL_DEL: WM_USER + 2475,
  WM_GDRCU_GET_SAFE_HOST: WM_USER + 2476,

  // 海通证券.智能审核.数据字典
  WM_HTZQIAMS_DICT_ADD: WM_USER + 2480,
  WM_HTZQIAMS_DICT_DEL: WM_USER + 2481,
  WM_HTZQIAMS_DICT_SET: WM_USER + 2482,
  // 海通证券.智能审核.业务参数
  WM_HTZQIAMS_PARAMETE_ADD: WM_USER + 2483,
  WM_HTZQIAMS_PARAMETE_DEL: WM_USER + 2484,
  WM_HTZQIAMS_PARAMETE_SET: WM_USER + 2485,
  // 海通证券.智能审核.任务调度
  WM_HTZQIAMS_TASK_ADD: WM_USER + 2486,
  WM_HTZQIAMS_TASK_DEL: WM_USER + 2487,
  WM_HTZQIAMS_TASK_SET: WM_USER + 2488,
  WM_HTZQIAMS_TASK_CTRL: WM_USER + 2489,

  // 智能审核
  WM_GDRCU_IAMS_NEW: WM_USER + 2490,
  WM_GDRCU_IAMS_SET: WM_USER + 2491,
  WM_GDRCU_IAMS_DEL: WM_USER + 2492,
  WM_GDRCU_IAMS_GROUP_NEW: WM_USER + 2493,
  WM_GDRCU_IAMS_MOVE: WM_USER + 2494,
  WM_GDRCU_IAMS_DETAIL_DEL: WM_USER + 2495,
  WM_GDRCU_IAMS_EXCE: WM_USER + 2496,

  // 报表、报告 审核
  WM_CURREPORT_DEL: WM_USER + 2500,
  WM_REPORT_RECOVER: WM_USER + 2501,
  WM_REPORT_AUDIT: WM_USER + 2502,
  WM_CURDOCUMENT_DEL: WM_USER + 2503,
  WM_DOCUMENT_RECOVER: WM_USER + 2504,
  WM_DOCUMENT_AUDIT: WM_USER + 2505,

  // 分库
  // 市场管理
  WM_SPLIT_MARKET_NEW: WM_USER + 2510,
  WM_SPLIT_MARKET_SET: WM_USER + 2511,
  WM_SPLIT_MARKET_DEL: WM_USER + 2512,

  // 任务类型
  WM_SPLIT_TASK_TYPE_NEW: WM_USER + 2515,
  WM_SPLIT_TASK_TYPE_DEL: WM_USER + 2516,
  WM_SPLIT_TASK_TYPE_SET: WM_USER + 2517,

  // 文件管理
  WM_SPLIT_FILE_NEW: WM_USER + 2520,
  WM_SPLIT_FILE_SET: WM_USER + 2521,
  WM_SPLIT_FILE_DEL: WM_USER + 2522,
  WM_SPLIT_FILE_GROUP_NEW: WM_USER + 2523,
  WM_SPLIT_FILE_MOVE: WM_USER + 2524,

  // 通道管理
  WM_SPLITCHANNEL_NEW: WM_USER + 2530,
  WM_SPLITCHANNELGROUP_NEW: WM_USER + 2531,
  WM_SPLITCHANNEL_SET: WM_USER + 2532,
  WM_SPLITCHANNEL_DEL: WM_USER + 2533,
  WM_SPLITCHANNEL_MOVE: WM_USER + 2534,

  // 目录管理
  WM_SPLIT_PATH_NEW: WM_USER + 2540,
  WM_SPLIT_PATH_SET: WM_USER + 2541,
  WM_SPLIT_PATH_DEL: WM_USER + 2542,
  WM_SPLIT_PATH_GROUP_NEW: WM_USER + 2543,
  WM_SPLIT_PATH_MOVE: WM_USER + 2544,

  // 规则管理
  WM_SPLIT_RULE_NEW: WM_USER + 2550,
  WM_SPLIT_RULE_SET: WM_USER + 2551,
  WM_SPLIT_RULE_DEL: WM_USER + 2552,
  WM_SPLIT_RULE_GROUP_NEW: WM_USER + 2553,
  WM_SPLIT_RULE_MOVE: WM_USER + 2554,

  // 采集管理
  WM_SPLIT_GATHER_NEW: WM_USER + 2560,
  WM_SPLIT_GATHER_SET: WM_USER + 2561,
  WM_SPLIT_GATHER_DEL: WM_USER + 2562,
  WM_SPLIT_GATHER_GROUP_NEW: WM_USER + 2563,
  WM_SPLIT_GATHER_MOVE: WM_USER + 2564,
  WM_SPLIT_SET_FILE: WM_USER + 2565,
  WM_SPLIT_START_GATHER: WM_USER + 2566,
  WM_SPLIT_END_GATHER: WM_USER + 2567,
  WM_SPLIT_GATHER_DEL2: WM_USER + 2568,
  WM_SPLIT_SEND_TASK: WM_USER + 2569,
  // 拆分管理
  WM_SPLIT_TASK_NEW: WM_USER + 2570,
  WM_SPLIT_TASK_SET: WM_USER + 2571,
  WM_SPLIT_TASK_DEL: WM_USER + 2572,
  WM_SPLIT_TASK_GROUP_NEW: WM_USER + 2573,
  WM_SPLIT_TASK_MOVE: WM_USER + 2574,
  WM_SPLIT_START_TASK: WM_USER + 2575,
  WM_SPLIT_END_TASK: WM_USER + 2576,
  WM_SPLIT_FILE: WM_USER + 2577,
  WM_SPLIT_TASK_DEL2: WM_USER + 2578,
  WM_SPLIT_TASK_CONFIG: WM_USER + 2579,
  // 客户管理
  WM_SPLIT_CUSTOMER_NEW: WM_USER + 2580,
  WM_SPLIT_CUSTOMER_SET: WM_USER + 2581,
  WM_SPLIT_CUSTOMER_DEL: WM_USER + 2582,
  WM_SPLIT_CUSTOMER_GROUP_NEW: WM_USER + 2583,
  WM_SPLIT_CUSTOMER_MOVE: WM_USER + 2584,

  WM_START_SPLIT_FILE: WM_USER + 2585,
  WM_END_SPLIT_FILE: WM_USER + 2586,
  WM_SET_SPLIT_NULLFILE: WM_USER + 2587,

  // 文件类型
  WM_SPLIT_TYPE_NEW: WM_USER + 2590,
  WM_SPLIT_TYPE_SET: WM_USER + 2591,
  WM_SPLIT_TYPE_DEL: WM_USER + 2592,
  WM_SPLIT_TYPE_GROUP_NEW: WM_USER + 2593,
  WM_SPLIT_TYPE_MOVE: WM_USER + 2594,

  // 模板
  WM_SPLIT_FILE_PLAN_DEL: WM_USER + 2595, // 删除模版
  WM_SPLIT_FILE_PLAN_SET: WM_USER + 2596, // 修改模版
  WM_SPLIT_PLAN_GROUP_NEW: WM_USER + 2597,
  WM_SPLIT_FILE_PLAN_MOVE: WM_USER + 2598,

  // snmptrap， syslog
  WM_SNMPTRAP_ADD: WM_USER + 2600,
  WM_SYSLOG_ADD: WM_USER + 2601,

  WM_SNMPOID_NEW: WM_USER + 2602,
  WM_SNMPOID_SET: WM_USER + 2603,
  WM_SNMPOID_DEL: WM_USER + 2604,
  WM_SNMPOID_MOVE: WM_USER + 2605,

  // 方案管理
  WM_TARGET_PLAN_NEW: WM_USER + 2610, // 增加方案
  WM_TARGET_PLAN_SET: WM_USER + 2611, // 设置方案
  WM_TARGET_PLAN_DEL: WM_USER + 2612, // 删除方案
  WM_TARGET_PLAN_MOVE: WM_USER + 2613, // 移动方案
  WM_TARGET_PLAN_GROUP_NEW: WM_USER + 2614, // 增加方案分组
  WM_TARGET_PLAN_GROUP_SET: WM_USER + 2615, // 设置方案分组
  WM_TARGET_PLAN_GROUP_DEL: WM_USER + 2616, // 删除方案分组
  WM_TARGET_PLAN_GROUP_MOVE: WM_USER + 2617, // 移动方案分组

  // Robot测试
  WM_ROBOT_PROJECT_NEW: WM_USER + 2620, // 新建项目
  WM_ROBOT_PROJECT_DEL: WM_USER + 2621, // 删除项目
  WM_ROBOT_PROJECT_SET: WM_USER + 2622, // 修改项目
  WM_ROBOT_PROJECT_SCRIPT_SAVE: WM_USER + 2623, // 保存项目脚本
  WM_ROBOT_PROJECT_ARG_ADD: WM_USER + 2624, // 添加全局变量
  WM_ROBOT_PROJECT_ARG_DEL: WM_USER + 2625, // 删除全局变量
  WM_ROBOT_PROJECT_KEY_ADD: WM_USER + 2626, // 添加全局组件
  WM_ROBOT_PROJECT_KEY_DEL: WM_USER + 2627, // 删除全局组件
  WM_ROBOT_GROUP_NEW: WM_USER + 2628, // 新建分组
  WM_ROBOT_GROUP_DEL: WM_USER + 2629, // 删除分组
  WM_ROBOT_GROUP_SET: WM_USER + 2630, // 修改分组
  WM_ROBOT_PROJECT_RECOVER: WM_USER + 2631, // 还原项目

  // 账号管理
  WM_ACCOUNTGROUP_NEW: WM_USER + 2700,
  WM_ACCOUNTGROUP_SET: WM_USER + 2701,
  WM_ACCOUNT_DEL: WM_USER + 2702,
  WM_ACCOUNT_NEW: WM_USER + 2703,
  WM_ACCOUNT_SET: WM_USER + 2704,
  WM_ACCOUNT_MOVE: WM_USER + 2705,
  WM_ACCOUNT_INPUT: WM_USER + 2706,

  // KCMID管理
  WM_KCMIDMACHINEGROUP_NEW: WM_USER + 2710,
  WM_KCMIDMACHINEGROUP_SET: WM_USER + 2711,
  WM_KCMIDMACHINE_DEL: WM_USER + 2712,
  WM_KCMIDMACHINE_NEW: WM_USER + 2713,
  WM_KCMIDMACHINE_SET: WM_USER + 2714,
  WM_KCMIDMACHINE_MOVE: WM_USER + 2715,
  WM_KCMIDMACHINE_INPUT: WM_USER + 2716,

  // kcmin.host
  WM_POST_KCMINHOST: WM_USER + 2717,
  WM_GET_KCMINHOST: WM_USER + 2718,

  // KCBP管理
  WM_KCBPMACHINEGROUP_NEW: WM_USER + 2720,
  WM_KCBPMACHINEGROUP_SET: WM_USER + 2721,
  WM_KCBPMACHINE_DEL: WM_USER + 2722,
  WM_KCBPMACHINE_NEW: WM_USER + 2723,
  WM_KCBPMACHINE_SET: WM_USER + 2724,
  WM_KCBPMACHINE_MOVE: WM_USER + 2725,
  WM_KCBPMACHINE_INPUT: WM_USER + 2726,

  // 机器管理
  WM_MACHINE_GET_INO: WM_USER + 2729,

  // 探测点管理
  WM_TESTAGENTGROUP_NEW: WM_USER + 2730,
  WM_TESTAGENTGROUP_SET: WM_USER + 2731,
  WM_TESTAGENTGROUP_DEL: WM_USER + 2732,
  WM_TESTAGENT_DEL: WM_USER + 2733,
  WM_TESTAGENT_NEW: WM_USER + 2734,
  WM_TESTAGENT_SET: WM_USER + 2735,
  WM_TESTAGENT_MOVE: WM_USER + 2736,
  WM_TESTAGENTBUSINESS_NEW: WM_USER + 2737,
  WM_TESTAGENTBUSINESS_SET: WM_USER + 2738,
  WM_TESTAGENTBUSINESS_DEL: WM_USER + 2739,
  WM_TESTAGENT_INPUT: WM_USER + 2740,
  WM_ENABLE_SET: WM_USER + 2741,

  // 外网管理
  WM_INTERNET_ENABLED: WM_USER + 2750,
  WM_INTERNET_IPVALUE: WM_USER + 2751,
  WM_INTERNET_DELETE: WM_USER + 2752,
  WM_INTERNET_BLACKLIST: WM_USER + 2753,

  // 版本管理
  WM_TC_PROJECT_NEW: WM_USER + 2760,
  WM_TC_PROJECT_EDIT: WM_USER + 2761,
  WM_TC_FOLDRE_NEW: WM_USER + 2762,
  WM_TC_PROJECT_DEL: WM_USER + 2763,
  WM_TC_FOLDRE_LOAD: WM_USER + 2764,
  WM_TC_PROJECT_MONITOR: WM_USER + 2765,

  // 基线管理
  WM_BASEGROUP_NEW: WM_USER + 2781, // 增加基线分组
  WM_BASELINE_SET: WM_USER + 2782, // 设置基线
  WM_BASELINE_DEL: WM_USER + 2783, // 删除基线
  WM_BASELINE_NEW: WM_USER + 2784, // 增加基线
  WM_BASELINE_MOVE: WM_USER + 2785, // 移动基线
  WM_BASELINE_AUDIT: WM_USER + 2786, // 审核基线
  WM_SAVEBASE_DEL: WM_USER + 2787, // 删除基线
  WM_CURBASE_DEL: WM_USER + 2788, // 删除最新基线
  WM_SAVEBASE_RECOVER: WM_USER + 2789, // 覆盖基线

  // 告警策略
  WM_TESTLEVEL_NEW: WM_USER + 2790,
  WM_TESTLEVEL_SET: WM_USER + 2791,
  WM_TESTLEVEL_DEL: WM_USER + 2792,
  WM_TESTLEVELGROUP_NEW: WM_USER + 2793,
  WM_TESTLEVEL_MOVE: WM_USER + 2794,
  WM_TESTLEVEL_QUERY: WM_USER + 2795,

  // 回收站
  WM_RECYCLE_DEL: WM_USER + 2800,
  WM_RECYCLE_RESTORE: WM_USER + 2825,
  // 黄清权专用
  WM_USER_SELECT: WM_USER + 2801,
  WM_USER_SCRIPT: WM_USER + 2802,
  WM_USER_FILE: WM_USER + 2803,
  WM_USER_INIT: WM_USER + 2804,
  WM_USER_JOB: WM_USER + 2805,
  WM_USER_FLOW: WM_USER + 2806,
  WM_USER_ERROR: WM_USER + 2807,
  WM_USER_END: WM_USER + 2808,
  WM_USER_MAIL: WM_USER + 2809,
  WM_USER_AUTO: WM_USER + 2810,
  WM_USER_MANUAL: WM_USER + 2811,
  WM_USER_POST: WM_USER + 2812,
  WM_USER_SELECTED: WM_USER + 2813,
  WM_USER_RESET: WM_USER + 2814,
  WM_USER_MM_SETDATE: WM_USER + 2815,
  WM_USER_MODIDY: WM_USER + 2816,

  // 数据库连接管理
  WM_DBConnectionGroup_NEW: WM_USER + 2830,
  WM_DBConnectionGROUP_SET: WM_USER + 2831,
  WM_DBConnection_DEL: WM_USER + 2832,
  WM_DBConnection_NEW: WM_USER + 2833,
  WM_DBConnection_SET: WM_USER + 2834,
  WM_DBConnection_MOVE: WM_USER + 2835,
  WM_DBConnection_INPUT: WM_USER + 2836,

  // 环比分析、对比分析
  WM_CHARTQUERY_SET: WM_USER + 2840,
  WM_CHARTQUERY_DEL: WM_USER + 2841,

  // 远程管理
  WM_REMOTE_GROUP_NEW: WM_USER + 2850,
  WM_REMOTE_GROUP_SET: WM_USER + 2851,
  WM_REMOTE_GROUP_DEL: WM_USER + 2852,
  WM_REMOTE_NEW: WM_USER + 2853,
  WM_REMOTE_SET: WM_USER + 2854,
  WM_REMOTE_DEL: WM_USER + 2855,
  WM_REMOTE_MOVE: WM_USER + 2856,
  WM_REMOTE_ENABLE: WM_USER + 2857,
  WM_REMOTE_TRACE: WM_USER + 2858,
  WM_REMOTE_MAXCON: WM_USER + 2859,

  // 测试环境管理
  WM_TESTGROUP_NEW: WM_USER + 2860, // 增加环境分组
  WM_TESTMENT_SET: WM_USER + 2861, // 设置环境
  WM_TESTMENT_DEL: WM_USER + 2862, // 删除环境
  WM_TESTMENT_NEW: WM_USER + 2863, // 增加环境
  WM_TESTMENT_MOVE: WM_USER + 2864, // 移动环境

  // 中转服务器
  WM_TRANSIT_DEL: WM_USER + 2870,
  WM_TRANSIT_SET: WM_USER + 2871,
  WM_TRANSIT_CHANGEHOST: WM_USER + 2872,
  WM_TRANSIT_CHANGEPORT: WM_USER + 2873,
  WM_TRANSIT_CHANGEBACK: WM_USER + 2874,
  WM_TRANSIT_RESTART: WM_USER + 2875,

  // 发布工单
  WM_PUBLISH_FORM_NEW: WM_USER + 2880, // 增加工单
  WM_PUBLISH_FORM_SET: WM_USER + 2881, // 修改工单
  WM_PUBLISH_FORM_SUBMIT: WM_USER + 2882, // 提交工单
  WM_PUBLISH_FORM_DEL: WM_USER + 2883, // 删除工单

  // 脚本进程
  WM_AOMSCRIPT_CAPTION: WM_USER + 2890,
  WM_AOMSCRIPT_HIDETRAYICON: WM_USER + 2891,

  // 知识库-文件管理
  WM_REPOSITORYFILEGROUP_ADD: WM_USER + 2900,
  WM_REPOSITORYFILEGROUP_SET: WM_USER + 2901,
  WM_REPOSITORYFILEGROUP_DEL: WM_USER + 2902,
  WM_REPOSITORYFILE_ADD: WM_USER + 2903,
  WM_REPOSITORYFILE_DEL: WM_USER + 2904,

  // 基准管理
  WM_RELATION_SOFT_GROUP_NEW: WM_USER + 2910, // 增加基准分组
  WM_RELATION_SOFT_SET: WM_USER + 2911, // 修改基准
  WM_RELATION_SOFT_DEL: WM_USER + 2912, // 删除基准
  WM_RELATION_SOFT_NEW: WM_USER + 2913, // 增加基准
  WM_RELATION_SOFT_MOVE: WM_USER + 2914, // 移动基准
  WM_RELATION_SOFT_AUDIT: WM_USER + 2915, // 审核基准
  WM_RELATION_SOFT_MONITOR: WM_USER + 2916, // 基准监控
  WM_RELATION_SOFT_RECOVER: WM_USER + 2917, // 基准覆盖
  WM_RELATION_SOFT_FORBID: WM_USER + 2918, // 基准禁用
  WM_RELATION_SOFT_INIT: WM_USER + 2919, // 基准禁用

  WM_AGENT_PLAN_DEL: WM_USER + 2920, // 删除模版
  WM_AGENT_PLAN_SET: WM_USER + 2921, // 修改模版

  WM_NOTIFY_FORM: WM_USER + 2922, // 弹框通知
  WM_NOTIFY_VOICE: WM_USER + 2923, // 语音通知

  WM_RELATION_OpposedSOFT_NEW: WM_USER + 2924, // 增加反向基准
  WM_KEY_TARGET: WM_USER + 2925, // 关键指标

  // 公告通知
  WM_AOM_NOTIFY_NEW: WM_USER + 2930, // 增加公告
  WM_AOM_NOTIFY_SET: WM_USER + 2931, // 修改公告
  WM_AOM_NOTIFY_DEL: WM_USER + 2932, // 删除公告
  WM_SCHEDULER_TASK_POPUP: WM_USER + 2933, // 任务弹出框

  // 指标统计
  WM_STATISTIC_GROUP_ADD: WM_USER + 2940, // 增加统计分组
  WM_STATISTIC_GROUP_SET: WM_USER + 2941, // 修改统计分组
  WM_STATISTIC_GROUP_DEL: WM_USER + 2942, // 删除统计分组
  WM_STATISTIC_ADD: WM_USER + 2943, // 增加统计
  WM_STATISTIC_SET: WM_USER + 2944, // 修改统计
  WM_STATISTIC_DEL: WM_USER + 2945, // 删除统计
  WM_STATISTIC_UPDATE: WM_USER + 2946, // 统计数据更新

  WM_PSI_CALL: WM_USER + 2950,

  // 期货日历
  WM_FUTURECALENDAR_SET: WM_USER + 2960, // 修改期货日历
  WM_FUTURECALENDAR_DEL: WM_USER + 2961, // 删除期货日历
  WM_FUTURECALENDAR_ADD: WM_USER + 2962, // 添加期货日历

  // 环境变量
  WM_ENV_MOVE: WM_USER + 2970, // 移动境变量
  WM_COMPUTER_NAME_UPDATE: WM_USER + 2971, // 同步更新机器名

  // 三方存管
  WM_THREE_PARTY: WM_USER + 2980, // 三方存管
  WM_THREE_BANKWARN: WM_USER + 2981, // 银行预警

  // 交易查询配置
  WM_TRANQUERY_GROUP_NEW: WM_USER + 3010,
  WM_TRANQUERY_GROUP_MOVE: WM_USER + 3011,
  WM_TRANQUERY_NEW: WM_USER + 3012,
  WM_TRANQUERY_SET: WM_USER + 3013,
  WM_TRANQUERY_MOVE: WM_USER + 3014,
  WM_TRANQUERY_DEL: WM_USER + 3015,
  WM_TRANQUERY_GET: WM_USER + 3016,
  // 太平洋基金
  WM_FUND_ADD: WM_USER + 3017,
  WM_FUND_DEL: WM_USER + 3018,
  WM_FUND_SET: WM_USER + 3019,
  WM_FUND_MSG_SEND: WM_USER + 3020,
  WM_FUND_MSG_READ: WM_USER + 3021,
  WM_FUND_MSG_ADD: WM_USER + 3022,
  WM_FUND_MSG_DEL: WM_USER + 3023,
  WM_FUND_MSG_SET: WM_USER + 3024,
  WM_FUND_MSG_CLOSE: WM_USER + 3028,

  // 指标监控
  WM_SUPERVISE_ADD: WM_USER + 3025,
  WM_SUPERVISE_DEL: WM_USER + 3026,
  WM_SUPERVISE_SET: WM_USER + 3027,

  // 指标暂停
  WM_TARGET_PAUSE: WM_USER + 3190, // 指标暂停
  WM_TARGET_PAUSE_DEL: WM_USER + 3191, // 删除暂停

  // 远程
  WM_REMOTE_REQUEST: WM_USER + 3030,
  WM_REMOTE_DOREQUEST: WM_USER + 3031,
  WM_REMOTE_FINISH: WM_USER + 3032,

  // 标签
  WM_TAG_CHECKED: WM_USER + 3033, // 选中
  WM_TAG_CANCEL: WM_USER + 3034, // 取消
  WM_TAG_NEW: WM_USER + 3035,
  WM_TAG_SET: WM_USER + 3036,
  WM_TAG_DEL: WM_USER + 3037,
  WM_TAG_MOVE: WM_USER + 3038,

  // 事件暂停
  WM_EVENT_DELAY_SET: WM_USER + 3040,
  WM_EVENT_DELAY_DEL: WM_USER + 3041,

  // 岗位管理
  WM_POST_ADD: WM_USER + 3050, // 增加岗位
  WM_POST_DEL: WM_USER + 3051, // 删除岗位
  WM_POST_SET: WM_USER + 3052, // 修改岗位
  WM_POST_USER_ADD: WM_USER + 3053, // 增加岗位人员
  WM_POST_USER_DEL: WM_USER + 3054, // 删除岗位人员
  WM_POST_SET_TASK: WM_USER + 3055, // 修改岗位任务

  // 组合告警
  WM_LEVELCOMBO_NEW: WM_USER + 3060,
  WM_LEVELCOMBO_SET: WM_USER + 3061,
  WM_LEVELCOMBO_DEL: WM_USER + 3062,
  WM_LEVELCOMBOGROUP_NEW: WM_USER + 3063,
  WM_LEVELCOMBO_MOVE: WM_USER + 3064,

  // 批注管理
  WM_REMARK_ADD: WM_USER + 3070, // 增加批注
  WM_REMARK_DEL: WM_USER + 3071, // 删除批注
  WM_REMARK_SET: WM_USER + 3072, // 修改批注

  // FileBeat 日志监控
  WM_FILEBEAT_SET: WM_USER + 3073, // 设置 FileBeat
  WM_FILEBEAT_INSTALL: WM_USER + 3074, // 安装 FileBeat
  WM_FILEBEAT_EXEC: WM_USER + 3075, // 执行组件
  WM_FILEBEAT_GETCONF: WM_USER + 3076, // 获取配置文件
  // 脚本工具
  WM_SCRIPT_TOOL_NEW: WM_USER + 3077, // 增
  WM_SCRIPT_TOOL_DEL: WM_USER + 3078, // 删
  WM_SCRIPT_TOOL_SET: WM_USER + 3079, // 改
  WM_SCRIPT_TOOL_AUDIT: WM_USER + 3080, // 审核
  WM_SCRIPT_TOOL_EXEC: WM_USER + 3081, // 执行
  WM_SCRIPT_TOOL_EXEC_END: WM_USER + 3082, // 执行完成
  // 升级管理方案
  WM_UPGRADE_PLAN_NEW: WM_USER + 3083, // 增
  WM_UPGRADE_PLAN_DEL: WM_USER + 3084, // 删
  WM_UPGRADE_PLAN_SET: WM_USER + 3085, // 改
  WM_UPGRADE_AGENT: WM_USER + 3086, // 升级
  // 海通问答平台
  WM_HTQAP_DEL: WM_USER + 3087,
  WM_HTQAP_ADD: WM_USER + 3088,
  WM_HTQAP_SET: WM_USER + 3089,
  WM_HTQAP_ADD_ANSWER: WM_USER + 3090, // 添加回答
  WM_HTQAP_ADD_COMMENT: WM_USER + 3091, // 添加评论
  WM_HTQAP_DEL_DRAFT: WM_USER + 3092, // 删除草稿
  WM_HTQAP_DEL_ATTA: WM_USER + 3093, // 删除附件
  WM_HTQAP_DEL_COll: WM_USER + 3094, // 删除收藏

  // 压制策略
  WM_EVENT_REPRESS_NEW: WM_USER + 3100,
  WM_EVENT_REPRESS_SET: WM_USER + 3101,
  WM_EVENT_REPRESS_DEL: WM_USER + 3102,
  WM_EVENT_REPRESS_GROUP_NEW: WM_USER + 3103,
  WM_EVENT_REPRESS_MOVE: WM_USER + 3104,

  // ansible 管理
  WM_ANSIBLE_GET_INFO: WM_USER + 3110, // 获取ansible 版本
  WM_ANSIBLE_GET_CFG: WM_USER + 3111, // 获取ansible 配置
  WM_ANSIBLE_SAVE_CFG: WM_USER + 3112, // 修改ansible 配置信息
  WM_ANSIBLE_RUN_MOD: WM_USER + 3113, // 运行模块
  WM_ANSIBLE_NODE_CHANGE: WM_USER + 3114, // 节点变化（删除）

  // 采集中间件截图
  WM_CALLAOM_SCREENSHOT: WM_USER + 3158,
  WM_CALLAOM_SCREENSHOT_LIST: WM_USER + 3159,

  // 快速任务
  WM_QUICK_TASK_BEGIN: WM_USER + 3218,
  WM_QUICK_TASK_END: WM_USER + 3219,

  // 机器方案
  WM_AGENT_PLAN_NEW: WM_USER + 3210,
  WM_AGENT_PLAN_GROUP_NEW: WM_USER + 3211,
  WM_AGENT_PLAN_SET_EX: WM_USER + 3212,
  WM_AGENT_PLAN_DEL_EX: WM_USER + 3213,
  WM_AGENT_PLAN_MOVE: WM_USER + 3214,

  // 机器审核
  WM_AGENT_CONNECT_AUDIT: WM_USER + 3215,
  WM_AGENT_CLASH_AUDIT: WM_USER + 3216,

  // 数据队列
  WM_DATA_QUEUE_NEW: WM_USER + 3281,
  WM_DATA_QUEUE_SET: WM_USER + 3282,
  WM_DATA_QUEUE_DEL: WM_USER + 3283,
  WM_DATA_QUEUE_START: WM_USER + 3284,
  WM_DATA_QUEUE_STOP: WM_USER + 3285,
  WM_DATA_QUEUE_QUERY_DEL: WM_USER + 3286,

  // 制品库管理
  WM_PRODUCT_NEW: WM_USER + 3291,
  WM_PRODUCTGROUP_NEW: WM_USER + 3292,
  WM_PRODUCT_SET: WM_USER + 3293,
  WM_PRODUCT_DEL: WM_USER + 3294,
  WM_PRODUCT_MOVE: WM_USER + 3295,
  WM_PRODUCT_VER_NEW: WM_USER + 3296,
  WM_PRODUCT_VER_DEL: WM_USER + 3297,

  // 安卓手机界面
  WM_ANDROID_CONN: WM_USER + 3298,
  WM_AGENT_TRACE_EX: WM_USER + 3299,

  // 流程参数
  WM_FLOW_OBJECT_PARAM_GROUP_NEW: WM_USER + 3310,
  WM_FLOW_OBJECT_PARAM_NEW: WM_USER + 3311,
  WM_FLOW_OBJECT_PARAM_SET: WM_USER + 3312,
  WM_FLOW_OBJECT_PARAM_DEL: WM_USER + 3313,
  WM_FLOW_OBJECT_PARAM_MOVE: WM_USER + 3314,
  WM_FLOW_OBJECT_PARAM_ISPASS: WM_USER + 3315,
  WM_FLOW_OBJECT_PARAM_INFO_SET: WM_USER + 3316,
  /** ******************************************************************** 导入导出类型定义(参照后台) *******************************************************/

  OUT_PUT_TYPE_FLOW: 0, // 流程类型导入导出
  OUT_PUT_TYPE_COMPONENT: 1, // 组件
  OUT_PUT_TYPE_USER: 2, // 用户
  OUT_PUT_TYPE_SCRIPTTIME: 3, // 采集策略
  OUT_PUT_TYPE_LEVELCONFIG: 4, // 告警策略
  OUT_PUT_TYPE_PARAMS: 5, // 全局变量
  OUT_PUT_TYPE_ROLE: 6, // 权限管理
  OUT_PUT_TYPE_AGENTPLAN: 7, // 机器方案
  OUT_PUT_TYPE_BIGSCREEN: 8, // 大屏
  OUT_PUT_TYPE_PLAN: 9, // 人员方案
  OUT_PUT_TYPE_COMPONENTTASK: 10, // 组件任务

  // vue大屏
  WM_VUE_BSCREEN_NEW: WM_USER + 3510, // 新建Vue大屏
  WM_VUE_BSCREEN_DEL: WM_USER + 3511, // 删除Vue大屏
  WM_VUE_BSCREEN_SET: WM_USER + 3512, // 设置Vue大屏
  WM_VUE_BSCREEN_NEW_GROUP: WM_USER + 3513, // 新建Vue大屏分组
  WM_VUE_BSCREEN_DEL_GROUP: WM_USER + 3514, // 删除Vue大屏分组
  WM_VUE_BSCREEN_SET_GROUP: WM_USER + 3515, // 设置Vue大屏分组

  /*
   * **************************************** 系统任务 ***************************************
   * *******************************************************************************************
   */
  CTaskName: [
    '备份数据',
    '清除数据',
    '同步备机',
    '重启Agent',
    '重启Server',
    '流程通知',
    '建立索引',
    '时间同步',
    '同步数据',
    '初始化全局变量',
    '任务提示框',
    '更新动态基线',
    '导出组件库',
    '导入佣金数据',
    '同步用户',
    '汇总数据',
    '流程审核通知',
    '机器补丁',
    '同步网络设备',
    '与CMDB服务器数据比对',
    '同步CMDB数据',
    '同步制品到安渡',
    '从安渡恢复制品',
    '同步制品到对象存储',
    '从对象存储恢复制品',
    '机器补丁入库',
    '同步SQLite数据库',
    '更新制品关联CMDB应用的数据'
  ],
  CTaskID: [
    '00000000000000000000000000000001',
    '00000000000000000000000000000005',
    '00000000000000000000000000000002',
    '00000000000000000000000000000003',
    '00000000000000000000000000000004',
    '00000000000000000000000000000006',
    '00000000000000000000000000000007',
    '00000000000000000000000000000008',
    '00000000000000000000000000000009',
    '00000000000000000000000000000010',
    '00000000000000000000000000000011',
    '00000000000000000000000000000012',
    '00000000000000000000000000000013',
    '00000000000000000000000000000014',
    '00000000000000000000000000000015',
    '00000000000000000000000000000016',
    '00000000000000000000000000000017',
    '00000000000000000000000000000018',
    '00000000000000000000000000000019',
    '00000000000000000000000000000020',
    '00000000000000000000000000000021',
    '00000000000000000000000000000022',
    '00000000000000000000000000000023',
    '00000000000000000000000000000024',
    '00000000000000000000000000000025',
    '00000000000000000000000000000026',
    '00000000000000000000000000000027',
    '00000000000000000000000000000028'
  ],

  getTaskID(taskName) {
    var taskID = ''
    for (var i = 0; i < this.CTaskName.length; i++) {
      if (taskName === this.CTaskName[i]) {
        taskID = this.CTaskID[i]
      }
    }
    return taskID
  },

  getTaskName(taskID) {
    var taskName = ''
    for (var i = 0; i < this.CTaskID.length; i++) {
      if (taskID === this.CTaskID[i]) {
        taskName = this.CTaskName[i]
      }
    }
    return taskName
  },

  isSystemTask(taskID) {
    for (var i = 0; i < this.CTaskID.length; i++) {
      if (taskID === this.CTaskID[i]) {
        return true
      }
    }
    return false
  },

  /*
   * **************************************** Delphi常量 ***************************************
   * *******************************************************************************************
   */
  MaxInt: 2147483647,

  /*
   * ************************************ Delphi颜色定义(BGR) ***********************************
   * *******************************************************************************************
   */
  clBlack: 0x000000,
  clWhite: 0xFFFFFF,
  clGreen: 0x008000,
  clGray: 0x808080,
  clRed: 0x0000FF,
  clYellow: 0x00FFFF,
  clBlue: 0xFF0000,
  clSkyBlue: 0xF0CAA6,

  /*
   * ******************************************** 级别函数 ***************************************
   * *******************************************************************************************
   */
  /*
   * 格式化输出等级文字
   * @level 等级
   * @return “正常”… 等级文字
   */
  getLevelText(level) {
    if (typeof level === 'string') {
      level = parseInt(level)
    }
    switch (level) {
      case 0:
        return '正常'
      case 1:
        return '离线'
      case 2:
        return '未知'
      case 3:
        return '提示'
      case 4:
        return '警告'
      case 5:
        return '次要'
      case 6:
        return '主要'
      case 7:
        return '严重'
      default:
        return '未知'
    }
  },

  getLevelIndex(level) {
    switch (level) {
      case '正常':
        return 0
      case '离线':
        return 1
      case '未知':
        return 2
      case '提示':
        return 3
      case '警告':
        return 4
      case '次要':
        return 5
      case '主要':
        return 6
      case '严重':
        return 7
      case 'Normal':
        return 0
      case 'Offline':
        return 1
      case 'Unknown':
        return 2
      case 'Hint':
        return 3
      case 'Warning':
        return 4
      case 'Secondary':
        return 5
      case 'major':
        return 6
      case 'Error':
        return 7
      default:
        return 2
    }
  },

  /**
   * @description 根据等级获取十六进制颜色
   * @param {Object} level 等级
   * @param {Object} toGreen 当等级为正常时可以将黑色转为绿色
   */
  getColorByLevel(level, toGreen) {
    var color = this.getLevelColor(level)
    if (level === 0 && toGreen) color = '6076508'
    return Global.getColor(color, true)
  },

  getEventState(state) {
    if (typeof state === 'string') {
      state = parseInt(state)
    }
    switch (state) {
      case 0:
        return '未处理'
      case 1:
        return '已处理'
      case 2:
        return '忽略'
      case 3:
        return '压制'
      case 4:
        return '已处理(异常)'
      default:
        return '未处理'
    }
  },

  getTargetValue(table) {
    switch (table.getIntByName('vaType')) {
      case 0:
        return table.getValueByName('sValue')

      case 1:
        return table.getValueByName('iValue')

      case 2:
        return table.getValueByName('fValue')

      case 3:
        return '(BLOB)'

      case 4:
        return table.getValueByName('lValue')

      default:
        return ''
    }
  },

  getTargetValueByvPar(vPar) {
    switch (vPar.getInt('Type')) {
      case 0:
        return vPar.getStr('Value')

      case 1:
        return vPar.getInt('Value') // intToStr

      case 2:
        return vPar.getFloat('Value')

      case 3:
        return '(BLOB)'

      case 4:
        return vPar.getInt('Value') // int64

      default:
        return ''
    }
  },

  // 获取任务颜色
  getTaskColorByState(state) {
    switch (state) {
      case '0':
        return '#777' // 禁用
      case '1':
        return '#5bc0de' // 未执行
      case '2':
        return '#337ab7' // 成功
      case '3':
        return '#d9534f' // 失败
      case '4':
        return '#5cb85c' // 执行中
      case '5':
        return '#f0ad4e' // 人工
    }
  },

  // 设置元素可见
  setElementVisible(e, visible) {
    if (visible) {
      e.show()
    } else {
      e.hide()
    }
  },

  QuotedStr(S) {
    return "'" + S + "'"
  },

  QuotedCommaStr(S) {
    S = S.replace(/,/g, "\',\'")
    return "'" + S + "'"
  },

  // a [b] 取a, b
  getFmtSubString(S, I) {
    var iPos = S.indexOf('[')
    if (I === 0) {
      if (iPos !== -1) {
        return S.substring(0, iPos - 1)
      } else {
        return S
      }
    } else if (I === 1) {
      if (iPos !== -1) {
        return S.substring(iPos + 1, S.length - 1)
      } else {
        return S
      }
    } else {
      return S
    }
  },
  GetTargetParam(name, index) {
    var reg = /\[(.*?)\]/gi
    var tmp = name.match(reg)
    try {
      return tmp[index].substring(1, tmp[index].length - 1)
    } catch (err) {
      return ''
    }
  }
}
